* label the additional variable ------------------------------------------------
label variable rw_jun              "Pre-test"

* run the regressions models and save them to memory ---------------------------

eststo: reg rw_nov treatment rw_jun recruitment_pool, cluster(province)

eststo: reg rw_nov treatment rw_jun recruitment_pool                            ///
treatment_nonterror casualty_district kurdish_district akp_district             ///
higher_education min_margin turnout_jun, cluster(province)

eststo: reg rw_nov treatment treatment_multi rw_jun recruitment_pool,           ///
cluster(province)

eststo: reg rw_nov treatment treatment_multi rw_jun recruitment_pool            ///
treatment_nonterror casualty_district kurdish_district akp_district             ///
higher_education min_margin turnout_jun, cluster(province)

* print the results ------------------------------------------------------------

esttab,                                                                         ///
replace se b(3) se(3) stats(N vce r2) label nodepvars nonotes nomtitles         ///
order(treatment treatment_multi)                                                ///
substitute(vce "Clusters" cluster "81")                                         ///
title("Table S16: Regression models of right-wing vote share")

* save the results -------------------------------------------------------------

esttab using "./tables/table_s16.tex",                                          ///
replace se b(3) se(3) stats(N vce r2) label nodepvars nonotes nomtitles         ///
order(treatment treatment_multi)                                                ///
substitute(vce "Clusters" cluster "81")                                         ///
title("Regression models of right-wing vote share")

* remove the models from memory ------------------------------------------------

eststo clear